<?php
require_once BASEPATH."lib/MCore/Controller/Action/Basic.php";
require_once BASEPATH."application/news/models/News.php";

class News_IndexController extends MCore_Controller_Action_Basic
{

	/** public function indexAction() {{{
	 *
	 *
	 *
	 */
	public function indexAction()
	{
		$this->render();
	}
	/*}}}*/

	/** public function listAction() {{{
	 *
	 *
	 *
	 */
	public function listAction()
	{
		$news = new News();

		$this->view->newsList = $news->lista();
		$this->render();
	}
	/*}}}*/

	/** public function showAction() {{{
	 *
	 *
	 *
	 */
	public function showAction()
	{
		$news = new News();

		$this->view->news = $news->find($this->request["id"]);

		$this->render();
	}
	/*}}}*/

}
?>
